package cn.accp.kzy.dao;

import java.util.List;
import java.util.Map;

import cn.accp.kzy.model.BBSTopic;
import cn.accp.kzy.model.BBSUser;
import cn.accp.kzy.util.PageInfo;

public interface BBSTopicDao {
	public void addTopic(BBSTopic topic);
	public BBSTopic getBBSTopicById(int tid);
	public List<BBSTopic> getBBSTopicByUser(BBSUser user,PageInfo pageInfo);
	public void updateClickCount(BBSTopic topic);
	public List<BBSTopic> getBBSTopicBySection(int sid,PageInfo pageInfo);
	public List<BBSTopic> getBBSTopicByDate(PageInfo pageInfo);
	public void updateReplyCount(int tid);
	public int getAllTopicCount();
	public List<BBSTopic> getBBSTopic(String type,Map<String, Object> session,int sid,PageInfo pageInfo);
	public BBSTopic getLastBBSTopicBySid(int sid);
	public int getTopicCountBySid(int sid) ;
	public List<BBSTopic> getBBSTopicBySidAndTime(int sid,PageInfo pageInfo,String time);
}
